package cn.wolfcode.service;

import cn.wolfcode.domain.Role;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IRoleService {
    void deleteByPrimaryKey(Long id);

    void insert(Role role, Long[] ids);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    void updateByPrimaryKey(Role role, Long[] ids);

    /**
     *
     * @param qo 封装用户传递进来的参数
     * @return 返回结果集
     */
    PageInfo<Role> queryForList(QueryObject qo);
}
